Optimal. Leaf size=183 \[ -\frac {a^2}{d (c+d x)}+\frac {2 a b f \text {Chi}\left (x f+\frac {c f}{d}\right ) \cosh \left (e-\frac {c f}{d}\right )}{d^2}+\frac {2 a b f \sinh \left (e-\frac {c f}{d}\right ) \text {Shi}\left (x f+\frac {c f}{d}\right )}{d^2}-\frac {2 a b \sinh (e+f x)}{d (c+d x)}+\frac {b^2 f \text {Chi}\left (2 x f+\frac {2 c f}{d}\right ) \sinh \left (2 e-\frac {2 c f}{d}\right )}{d^2}+\frac {b^2 f \cosh \left (2 e-\frac {2 c f}{d}\right ) \text {Shi}\left (2 x f+\frac {2 c f}{d}\right )}{d^2}-\frac {b^2 \sinh ^2(e+f x)}{d (c+d x)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.35, antiderivative size = 183, normalized size of antiderivative = 1.00, number of steps used = 11, number of rules used = 7, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.350, Rules used = {3317, 3297, 3303, 3298, 3301, 3313, 12} \[ -\frac {a^2}{d (c+d x)}+\frac {2 a b f \text {Chi}\left (x f+\frac {c f}{d}\right ) \cosh \left (e-\frac {c f}{d}\right )}{d^2}+\frac {2 a b f \sinh \left (e-\frac {c f}{d}\right ) \text {Shi}\left (x f+\frac {c f}{d}\right )}{d^2}-\frac {2 a b \sinh (e+f x)}{d (c+d x)}+\frac {b^2 f \text {Chi}\left (2 x f+\frac {2 c f}{d}\right ) \sinh \left (2 e-\frac {2 c f}{d}\right )}{d^2}+\frac {b^2 f \cosh \left (2 e-\frac {2 c f}{d}\right ) \text {Shi}\left (2 x f+\frac {2 c f}{d}\right )}{d^2}-\frac {b^2 \sinh ^2(e+f x)}{d (c+d x)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 3297
Rule 3298
Rule 3301
Rule 3303
Rule 3313
Rule 3317
Rubi steps
\begin {align*} \int \frac {(a+b \sinh (e+f x))^2}{(c+d x)^2} \, dx &=\int \left (\frac {a^2}{(c+d x)^2}+\frac {2 a b \sinh (e+f x)}{(c+d x)^2}+\frac {b^2 \sinh ^2(e+f x)}{(c+d x)^2}\right ) \, dx\\ &=-\frac {a^2}{d (c+d x)}+(2 a b) \int \frac {\sinh (e+f x)}{(c+d x)^2} \, dx+b^2 \int \frac {\sinh ^2(e+f x)}{(c+d x)^2} \, dx\\ &=-\frac {a^2}{d (c+d x)}-\frac {2 a b \sinh (e+f x)}{d (c+d x)}-\frac {b^2 \sinh ^2(e+f x)}{d (c+d x)}+\frac {(2 a b f) \int \frac {\cosh (e+f x)}{c+d x} \, dx}{d}-\frac {\left (2 i b^2 f\right ) \int \frac {i \sinh (2 e+2 f x)}{2 (c+d x)} \, dx}{d}\\ &=-\frac {a^2}{d (c+d x)}-\frac {2 a b \sinh (e+f x)}{d (c+d x)}-\frac {b^2 \sinh ^2(e+f x)}{d (c+d x)}+\frac {\left (b^2 f\right ) \int \frac {\sinh (2 e+2 f x)}{c+d x} \, dx}{d}+\frac {\left (2 a b f \cosh \left (e-\frac {c f}{d}\right )\right ) \int \frac {\cosh \left (\frac {c f}{d}+f x\right )}{c+d x} \, dx}{d}+\frac {\left (2 a b f \sinh \left (e-\frac {c f}{d}\right )\right ) \int \frac {\sinh \left (\frac {c f}{d}+f x\right )}{c+d x} \, dx}{d}\\ &=-\frac {a^2}{d (c+d x)}+\frac {2 a b f \cosh \left (e-\frac {c f}{d}\right ) \text {Chi}\left (\frac {c f}{d}+f x\right )}{d^2}-\frac {2 a b \sinh (e+f x)}{d (c+d x)}-\frac {b^2 \sinh ^2(e+f x)}{d (c+d x)}+\frac {2 a b f \sinh \left (e-\frac {c f}{d}\right ) \text {Shi}\left (\frac {c f}{d}+f x\right )}{d^2}+\frac {\left (b^2 f \cosh \left (2 e-\frac {2 c f}{d}\right )\right ) \int \frac {\sinh \left (\frac {2 c f}{d}+2 f x\right )}{c+d x} \, dx}{d}+\frac {\left (b^2 f \sinh \left (2 e-\frac {2 c f}{d}\right )\right ) \int \frac {\cosh \left (\frac {2 c f}{d}+2 f x\right )}{c+d x} \, dx}{d}\\ &=-\frac {a^2}{d (c+d x)}+\frac {2 a b f \cosh \left (e-\frac {c f}{d}\right ) \text {Chi}\left (\frac {c f}{d}+f x\right )}{d^2}+\frac {b^2 f \text {Chi}\left (\frac {2 c f}{d}+2 f x\right ) \sinh \left (2 e-\frac {2 c f}{d}\right )}{d^2}-\frac {2 a b \sinh (e+f x)}{d (c+d x)}-\frac {b^2 \sinh ^2(e+f x)}{d (c+d x)}+\frac {2 a b f \sinh \left (e-\frac {c f}{d}\right ) \text {Shi}\left (\frac {c f}{d}+f x\right )}{d^2}+\frac {b^2 f \cosh \left (2 e-\frac {2 c f}{d}\right ) \text {Shi}\left (\frac {2 c f}{d}+2 f x\right )}{d^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.60, size = 232, normalized size = 1.27 \[ \frac {-2 a^2 d+4 a b f (c+d x) \text {Chi}\left (f \left (\frac {c}{d}+x\right )\right ) \cosh \left (e-\frac {c f}{d}\right )+4 a b c f \sinh \left (e-\frac {c f}{d}\right ) \text {Shi}\left (f \left (\frac {c}{d}+x\right )\right )+4 a b d f x \sinh \left (e-\frac {c f}{d}\right ) \text {Shi}\left (f \left (\frac {c}{d}+x\right )\right )-4 a b d \sinh (e+f x)+2 b^2 f (c+d x) \text {Chi}\left (\frac {2 f (c+d x)}{d}\right ) \sinh \left (2 e-\frac {2 c f}{d}\right )+2 b^2 c f \cosh \left (2 e-\frac {2 c f}{d}\right ) \text {Shi}\left (\frac {2 f (c+d x)}{d}\right )+2 b^2 d f x \cosh \left (2 e-\frac {2 c f}{d}\right ) \text {Shi}\left (\frac {2 f (c+d x)}{d}\right )-b^2 d \cosh (2 (e+f x))+b^2 d}{2 d^2 (c+d x)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.58, size = 357, normalized size = 1.95 \[ -\frac {b^{2} d \cosh \left (f x + e\right )^{2} + b^{2} d \sinh \left (f x + e\right )^{2} + 4 \, a b d \sinh \left (f x + e\right ) + {\left (2 \, a^{2} - b^{2}\right )} d - 2 \, {\left ({\left (a b d f x + a b c f\right )} {\rm Ei}\left (\frac {d f x + c f}{d}\right ) + {\left (a b d f x + a b c f\right )} {\rm Ei}\left (-\frac {d f x + c f}{d}\right )\right )} \cosh \left (-\frac {d e - c f}{d}\right ) - {\left ({\left (b^{2} d f x + b^{2} c f\right )} {\rm Ei}\left (\frac {2 \, {\left (d f x + c f\right )}}{d}\right ) - {\left (b^{2} d f x + b^{2} c f\right )} {\rm Ei}\left (-\frac {2 \, {\left (d f x + c f\right )}}{d}\right )\right )} \cosh \left (-\frac {2 \, {\left (d e - c f\right )}}{d}\right ) + 2 \, {\left ({\left (a b d f x + a b c f\right )} {\rm Ei}\left (\frac {d f x + c f}{d}\right ) - {\left (a b d f x + a b c f\right )} {\rm Ei}\left (-\frac {d f x + c f}{d}\right )\right )} \sinh \left (-\frac {d e - c f}{d}\right ) + {\left ({\left (b^{2} d f x + b^{2} c f\right )} {\rm Ei}\left (\frac {2 \, {\left (d f x + c f\right )}}{d}\right ) + {\left (b^{2} d f x + b^{2} c f\right )} {\rm Ei}\left (-\frac {2 \, {\left (d f x + c f\right )}}{d}\right )\right )} \sinh \left (-\frac {2 \, {\left (d e - c f\right )}}{d}\right )}{2 \, {\left (d^{3} x + c d^{2}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.32, size = 1227, normalized size = 6.70 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.22, size = 319, normalized size = 1.74 \[ -\frac {f a b \,{\mathrm e}^{f x +e}}{d^{2} \left (\frac {c f}{d}+f x \right )}-\frac {f a b \,{\mathrm e}^{-\frac {c f -d e}{d}} \Ei \left (1, -f x -e -\frac {c f -d e}{d}\right )}{d^{2}}-\frac {a^{2}}{d \left (d x +c \right )}+\frac {b^{2}}{2 d \left (d x +c \right )}-\frac {f \,b^{2} {\mathrm e}^{-2 f x -2 e}}{4 d \left (d f x +c f \right )}+\frac {f \,b^{2} {\mathrm e}^{\frac {2 c f -2 d e}{d}} \Ei \left (1, 2 f x +2 e +\frac {2 c f -2 d e}{d}\right )}{2 d^{2}}-\frac {f \,b^{2} {\mathrm e}^{2 f x +2 e}}{4 d^{2} \left (\frac {c f}{d}+f x \right )}-\frac {f \,b^{2} {\mathrm e}^{-\frac {2 \left (c f -d e \right )}{d}} \Ei \left (1, -2 f x -2 e -\frac {2 \left (c f -d e \right )}{d}\right )}{2 d^{2}}+\frac {f a b \,{\mathrm e}^{-f x -e}}{d \left (d f x +c f \right )}-\frac {f a b \,{\mathrm e}^{\frac {c f -d e}{d}} \Ei \left (1, f x +e +\frac {c f -d e}{d}\right )}{d^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.44, size = 181, normalized size = 0.99 \[ -\frac {1}{4} \, b^{2} {\left (\frac {e^{\left (-2 \, e + \frac {2 \, c f}{d}\right )} E_{2}\left (\frac {2 \, {\left (d x + c\right )} f}{d}\right )}{{\left (d x + c\right )} d} + \frac {e^{\left (2 \, e - \frac {2 \, c f}{d}\right )} E_{2}\left (-\frac {2 \, {\left (d x + c\right )} f}{d}\right )}{{\left (d x + c\right )} d} - \frac {2}{d^{2} x + c d}\right )} + a b {\left (\frac {e^{\left (-e + \frac {c f}{d}\right )} E_{2}\left (\frac {{\left (d x + c\right )} f}{d}\right )}{{\left (d x + c\right )} d} - \frac {e^{\left (e - \frac {c f}{d}\right )} E_{2}\left (-\frac {{\left (d x + c\right )} f}{d}\right )}{{\left (d x + c\right )} d}\right )} - \frac {a^{2}}{d^{2} x + c d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {{\left (a+b\,\mathrm {sinh}\left (e+f\,x\right )\right )}^2}{{\left (c+d\,x\right )}^2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (a + b \sinh {\left (e + f x \right )}\right )^{2}}{\left (c + d x\right )^{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________